const io = new IntersectionObserver((entrys) => {
    console.log(entrys)
})

const imgs = document.querySelectorAll('img')
io.observe(imgs)